//
//  SINAMoneyTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2017/12/1.
//  Copyright © 2017年  androidlongs. All rights reserved.
//

#import "SINAMoneyTableViewCell.h"

@interface SINAMoneyTableViewCell()
//检测要求
@property (weak, nonatomic) IBOutlet UILabel *checkTitleLabel;
//检测时间
@property (weak, nonatomic) IBOutlet UILabel *checkTimeLabel;
//检测状态
@property (weak, nonatomic) IBOutlet UILabel *checkStatueLabel;
//发放时间
@property (weak, nonatomic) IBOutlet UILabel *fafangTimeLabel;
//发放状态
@property (weak, nonatomic) IBOutlet UILabel *fafangStatueLabel;


@end


@implementation SINAMoneyTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setMoneyModel:(SINAMoneyModel *)moneyModel{
    _moneyModel = moneyModel;
    
    
    self.checkTitleLabel.text=[NSString stringWithFormat:@"检测要求 : %@ 至 %@",moneyModel.CheckBeginDate,moneyModel.CheckEndDate];
    
    NSString *checkTime = moneyModel.AddTime;
    if (checkTime==nil||[checkTime isEqualToString:@""]) {
        checkTime=@"未检测";
    }
    self.checkTimeLabel.text=[NSString stringWithFormat:@"检测时间 : %@",checkTime];
    self.checkStatueLabel.text=[NSString stringWithFormat:@"检测状态 : %@",moneyModel.FlagDesc];
//
//
    
    NSString *fafangTime = moneyModel.FaFangTime;
    if (fafangTime==nil||[fafangTime isEqualToString:@""]) {
        fafangTime=@"未发放";
    }
    self.fafangStatueLabel.text=[NSString stringWithFormat:@"发放状态 : %@",moneyModel.FaFangDesc];
    self.fafangTimeLabel.text=[NSString stringWithFormat:@"发放时间 : %@",fafangTime];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
